package cn.com.pojo;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.object.MappingSqlQuery;

public class PersonMappingQuery extends MappingSqlQuery<Person>{

	@Override
	protected Person mapRow(ResultSet rs, int rowNum) throws SQLException {
		Person person = new Person();
		person.setId(rs.getInt("id"));
		person.setName(rs.getString("name"));
		person.setDesc(rs.getString("desc1"));
		return person;
	}

}
